package com.aliyun.messagemgt.controller;

import org.junit.runner.RunWith;
import org.mockito.junit.MockitoJUnitRunner;

/**
 * @author wenyaxin
 * @date 2020/12/2
 */
@RunWith(MockitoJUnitRunner.class)
public class SmsQuotaStatisticsControllerTest {

 /*   @InjectMocks
    private SmsQuotaStatisticsController smsQuotaStatisticsController;

    @Mock
    private SmsQuotaUsedMapper smsQuotaUsedMapper;

    @Mock
    private SmsStatisticsService smsStatisticsService;

    @Mock
    private MsgSourceService msgSourceService;

    @Test
    public void pushStatisticsTest(){
        List<SmsQuotaUsed> list = new ArrayList<>();
        SmsQuotaUsed smsQuotaUsed = new SmsQuotaUsed();
        smsQuotaUsed.setUsedMonth("2");
        smsQuotaUsed.setUsedQuota(2);
        smsQuotaUsed.setUsedYear("2020");
        list.add(smsQuotaUsed);
        Mockito.when(smsQuotaUsedMapper.querySmsQuotaUsedByEntity(Mockito.any())).thenReturn(list);
        smsQuotaStatisticsController.pushStatistics();
    }

    @Test
    public void smsMsgSourceListTest(){
        Mockito.when(msgSourceService.smsMsgSourceList(Mockito.any())).thenReturn(new Page<>());
        smsQuotaStatisticsController.smsMsgSourceList();
    }

    @Test
    public void trendTest(){
        Mockito.when(smsStatisticsService.trend(Mockito.any())).thenReturn(new SmsTrendResultVO());
        smsQuotaStatisticsController.trend(new SmsTrendQueryVO());
    }
*/
}
